<%@page import="org.dhbw.cocktail.UsedIngredient"%>
<%@page import="org.dhbw.cocktail.Cocktail"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/cocktailmixer.css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>jCocktailmixer - Cocktail</title>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<h1>Neue Zutat erstellen</h1>
		</div>
		<jsp:include page="menu.jsp"></jsp:include>
		<div id="content">
			
			<form action="create_ingredient.html" method="post">
				<p>
					<span class="desc_column">Name: </span><span><input name="name" type="text"
						id="input_ingredient_name"> </span>
				</p>
				<p>
					<span class="desc_column">Anf&auml;ngliche Menge: </span><span><input
						name="amount" type="text" id="input_ingredient_amount"> </span>
				</p>
				<p>
					<span class="desc_column">Einheit: </span><span><input name="unit" type="text"
						id="input_ingredient_unit"> </span>
				</p>
				<p>
					<input id="create_ingredient_button" type="submit" value="erstellen">
				</p>
			</form>
			<c:if test="${new_ingredient != null }"> Neue Zutat erstellt: <a
					href="ingredients.html?id=${new_ingredient.id }">${new_ingredient.name
					} </a>
			</c:if>
		</div>
		<br class="clear-float" />
		<div id="footer">
			<a>Impressum</a>
		</div>
	</div>
</body>
</html>